﻿using ACC.Business.Stn;
using ACC.Business;
using ACC.Data;
using ACC.Data.Comm;
using ACC.Data.Line;
using ACC.Device;
using System;


namespace Script
{
    /// <summary>
    /// 附件涂胶排废
    /// OP L1M02110 STATION L1M12111, L1M22111
    /// 是否取消？
    /// </summary>
    class L1M02110 : StnProcessPL02_JT
    {
        public L1M02110(StnRunningData data)
            : base(data)
        {
            IsACCReport = false;
            IsPalletRelationSN = false;
        }

        protected override ACCDevice CreateDevice()
        {

            ACCDevice dev = base.CreateDevice();
            if (kukaSiemensDev != null)
            {
                kukaSiemensDev.DB190 = 800;
                kukaSiemensDev.DB190_Offset = 23000;
                kukaSiemensDev.DB192 = 80;
                kukaSiemensDev.DB192_PLC_Offset = 23066;

                kukaSiemensDev.DB193 = 800;
                kukaSiemensDev.DB193_PLC_Offset = 23002; // 17034; 
                kukaSiemensDev.DB193_ACC_Offset = 23068;
                kukaSiemensDev.DB194 = 800;
                kukaSiemensDev.DB194_PLC_Offset = 23002; // 17034;
                kukaSiemensDev.DB194_PLC_Data_Offset = 23078;

                kukaSiemensDev.BarcodeLength = 30;
                kukaSiemensDev.LoadBarcodeCount = 2; // 1;
                kukaSiemensDev.UnloadBarcodeCount = 2; // 1;
            }

            return dev;
        }
    }
}
